<div class="fl kf-center">
	<div class="bk-a">
		<br />
		<div id="title">
			<a href="index.php">首页</a>&nbsp;&gt;&nbsp;<a href="?r=user/member">会员中心</a>
		</div>
		<p class="member">
			会员忠诚计划
		</p>
		<div class="bk-l"></div>

		<!--会员中心开始-->
		<div class="nTab">
			<div class="TabTitle">
				<ul id="myTab">
					<li class="active">
						<a href="">个人信息</a>
					</li>
					<li class="normal">
						<a href="?r=order/list">我的预定</a>
					</li>
				</ul>
			</div>
			<button class="zc-button">
				<a href="?r=user/logout">退出会员中心</a>
			</button>
			<div class="TabContent">
				<!--选项卡1-->
				<div id="myTab_Content0">
					<div class="tab1-title">
						<img src="images/zsdfag.png" class="img1" />
						<div class="loginimg2">
							<p class="aa">
								青城会
							</p>
							<p class="bb">
								我们将为会员提供更细致的服务！
							</p>
						</div>
					</div>
					<?php $form=$this->beginWidget('CActiveForm', array(
						'id'=>'edit_user_form',
						'action'=>'?r=user/edit',
						'htmlOptions'=>array(
							
						)
					)); ?>
					<div class="tab-hr">
						<hr />
					</div>
					<div class="tab1-content">
						<table class="tab-table1">
							<tr>
								<td><span>用户名：</span></td>
								<td class="tab1-td" width="120" colspan="3" style="text-align: left;">
									<span><?php echo $user->user_name?></span>	
									<span style="margin-left: 10px;">会员级别: </span>
									<span>普通会员</span>
								</td>
							</tr>
							<tr>
								<td><span>账户余额：</span></td>
								<td class="tab1-td" colspan="3" style="text-align: left;">
									<span>￥<?php echo $user->balance?></span>
									<a style="color: #bc262c; margin-left: 10px;" href="javascript:void(0)">想要享受更高的优惠吗？点击下载豪悦会会员申请表吧.</a>
								</td>
							</tr>
							<tr>
								<td class="tab1-td">
									姓名：
								</td>
								<td>
									<?php echo $form->textField($user,'name', array(
										'class'=>'login-input',
										'minLength'=>1,
										'minError'=>'姓名不能少于1个字符 ',
										'maxLength'=>6,
										'maxError'=>'姓名不能超过6个字符 ',
										'value'=>$user->name
									)) ?>
								</td>
								<td class="tab1-notice" width="300" style="text-align: left;">*</td>
							</tr>
							<tr>
								<td class="tab1-td">
									性别：
								</td>
								<td style="text-align: left;">
									<?php echo $form->radioButtonList($user,'gender', array(
										'1'=>'男',
										'0'=>'女'
									), array(
										'separator'=>'&nbsp;&nbsp;&nbsp;&nbsp;'
									) ) ?>
								</td>
							</tr>
							<tr>
								<td class="tab1-td">联系手机：</td>
								<td>
									<?php echo $form->textField($user,'mobile', array(
										'class'=>'login-input',
										'minLength'=>13,
										'minError'=>'手机号码不能少于13位 ',
										'maxLength'=>18,
										'maxError'=>'手机号码不能超过18位'
									)) ?>
								</td>
								<td class="tab1-notice" style="text-align: left;">*</td>
							</tr>
							<tr>
								<td class="tab1-td">电子邮箱：</td>
								<td>
									<?php echo $form->emailField($user,'email', array(
										'class'=>'login-input',
										'min'=>6,
										'maxLength'=>64
									)) ?>
								</td>
								<td class="tab1-notice" style="text-align: left;">*</td>
							</tr>
							<tr>
								<td class="tab1-td">证件号码：</td>
								<td>
									<?php echo $form->textField($user,'id_card', array(
										'class'=>'login-input'
									)) ?>
								</td>
								<td class="tab1-notice" style="text-align: left;">*</td>
							</tr>
							<tr>
								<td class="tab1-td">联系地址：</td>
								<td>
									<?php echo $form->textField($user,'address', array(
										'class'=>'login-input',
										'min'=>6,
										'maxLength'=>64
									)) ?>
								</td>
								<td class="tab1-notice" style="text-align: left;">*</td>
							</tr>
							<tr>
								<td class="tab1-td">邮政编码：</td>
								<td>
									<?php echo $form->textField($user,'postcode', array(
										'class'=>'login-input'
									)) ?>
								</td>
							</tr>
						</table>

						<div class="tab-hr">
							<hr />
						</div>
						<input type="submit" class="tab1-button" value="修改个人信息" style="width:100px;height:30px;line-height:30px;padding:0px;" />
					</div>
				</div>
				<?php $this->endWidget(); ?>
			</div>
		</div>
		<!--会员中心结束-->
	</div>
</div>